﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Macds.Debug.Test.Mocks
{
    public static class InstanceFactory
    {
        public static Customer GetSimpleCustomer()
        {
            return new Customer() { CustomerID = 1, Email = "demo@email.com", Username = "username", Password = "password" };
        }

        public static Customer GetCustomerWithAddresses()
        {
            var customer = GetSimpleCustomer();
            customer.Addresses = new List<Address>();
            customer.Addresses.Add(new Address() { Country = "USA", City = "Miami", State = "Florida" });
            customer.Addresses.Add(new Address() { Country = "PA", City = "Panama", State = "Panama" });

            return customer;
        }

        public static Customer GetCustomerWithStreets()
        {
            var customer = GetCustomerWithAddresses();
            var streets = new List<string>();
            streets.Add("#1");
            streets.Add("#2");

            customer.Addresses[1].Streets = streets.ToArray();

            return customer;
        }
    }
}
